home *** CD-ROM | disk | FTP | other *** search
- Path: info.spt.net.cn!usenet
- From: Xu Yifeng <jafd@public.sta.net.cn>
- Newsgroups: comp.lang.c++
- Subject: Re: memory model question
- Date: Sun, 14 Jan 1996 14:06:18 -0800
- Organization: ZheJiang Securities Co.Ltd
- Message-ID: <30F97E5A.188B@public.sta.net.cn>
- References: <4d94go$sp0@cantaloupe.srv.cs.cmu.edu>
- NNTP-Posting-Host: ts2-6.sta.net.cn
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0b5 (Win16; I)
-
- Bruce Maggs wrote:
- :
- : Hi,
- :
- : I'm compiling a C program using Borland's C++ for DOS. It's a large
- : program, but doesn't use much static memory. I've selected the
- : "small" memory model. The program compiles and runs without any
- : problems, but the length of the .exe file that the compiler produces
- : is 148K. I thought that in the small memory model the length of the
- : code would be limited to one segment, i.e., 64K. I'm curious about
- : what's going on here. Does the compiler automatically split my code
- : into two or more segments?
- :
- :
- : Thanks,
- :
- : Bruce Maggs
-
- Hello, can you link the program with no DEBUG infomation again?
- or try to run program tdstrip <your exe file > to remove DEBUG
- information, and see if the program is still so big!
-
- Small model program is not bigger than 128K in memory.
-
- Good luck
-